--[[

  Copyright (c) 2012-2013 Baby-Bus.com 
  http://www.babybus.com/ 

]] 




--------------------------
-- 引入命名空间
--------------------------
-- local BaseLayer = import("app.common.layer.BaseLayer")




--[[
    类
--]]


local M     = class("Bone", require("app.common.ArmatureBase"))





--------------------------
-- 构造函数
--------------------------

function M:ctor(params)
    -- [超类调用]
    M.super.ctor(self, params)
    -- [本类调用]

end

--------------------------
-- 渲染
--------------------------

function M:onRender()
    -- [超类调用]
    M.super.onRender(self)

    -- [本类调用]
    -- 加载节点
    self:loadDisplay() 
end 

-- 加载节点
function M:loadDisplay()
    -- 
end 

-- 加载渲染以外的其他操作
function M:onEnterTransitionFinish()
    --触控n
    self:bindTouch() 

    local size = self:getContentSize()

	tool:loadHelpRect({
		node = self,
		pos = cc.p(0, 0),
		size = cc.size(size.width, size.height),--armatureDisplay:getContentSize(),
		anchorPoint = cc.p(0, 0)
    }):opacity(200)	
    


	tool:loadHelpRect({
		node = self.armature,
		pos = cc.p(0, 0),
		size = cc.size(size.width, size.height),--armatureDisplay:getContentSize(),
		anchorPoint = cc.p(0, 0)
	}):opacity(200)	
end




--------------------------
-- 触控
-------------------------- 

function M:onTouchBegan(x, y, touches)
    --  触控有效
    return SIGN_TOUCH_BEGAN_SWALLOWS 
end

function M:onTouchMoved(x, y, touches)
    --  
end

function M:onTouchEnded(x, y, touches)
    --  
end








--------------------------
-- 功能函数
--------------------------




--------------------------
-- 属性
--------------------------




--------------------------
-- 父类重写
--------------------------




----------------------------------------------------
-- 析构
--------------------------

function M:onDestructor()
    -- [超类调用]
    M.super.onDestructor(self)
    -- [本类调用]

end








return M






